from django.urls import path,include
from management import views
app_name='management'

urlpatterns = [
    path('register/', views.register, name='register'),
    path('loginx/', views.loginx, name='loginx'),
    path('logoutx/', views.logoutx, name='logoutx'),
    path('bind_user/', views.bind_user, name='bind_user'),
    path('have_author/', views.have_author, name='have_author'),

    path('index/',views.index,name='index'),

    path('author_add/',views.author_add,name='author_add'),
    path('blog_add/',views.blog_add,name='blog_add'),

    path('author_update/<int:authorid>',views.author_update,name='author_update'),
    path('blog_update/<int:authorid>',views.blog_update,name='blog_update'),

    path('author_del/<int:authorid>',views.author_del,name='author_del'),
    path('blog_del/<int:authorid>',views.blog_del,name='blog_del'),

    path('author/<int:authorid>',views.author,name='author'),
    path('blog/<int:authorid>',views.blog,name='blog'),

    path('authors/',views.authors,name='authors'),
    path('blogs/',views.blogs,name='blogs'),

    path('blogs_of_author/<int:authorid>',views.blogs_of_author,name='blogs_of_author'),
]